package com.cl.edu.dao;

import java.util.List;

import org.springframework.stereotype.Repository;


import com.cl.core.orm.hibernate.HibernateDao;
import com.cl.edu.entity.Subject;


@Repository
public class SubjectDAO extends HibernateDao<Subject,Long>{
	public List<Subject> getSubjectsByPosition(String position) {
		StringBuffer hql = new StringBuffer("from Subject model");
		hql.append(" where model.position = '").append(position).append("'");
		return this.find(hql.toString());
	}
}
